
/*
 * CountEdgesMapper.java
 *
 * Created on May 7, 2012, 12:47:53 AM
 */

package CountEdges;


import java.io.IOException;
// import org.apache.commons.logging.Log;
// import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.Mapper;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reporter;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.LongWritable;

/**
 *
 * @author crazymooner
 */
public class CountEdgesMapper extends MapReduceBase implements Mapper<Text,Text,Text,LongWritable> {
    // The Karmasphere Studio Workflow Log displays logging from Apache Commons Logging, for example:
    // private static final Log LOG = LogFactory.getLog("CountEdges.CountEdgesMapper");

    @Override
    public void map(Text key, Text value, OutputCollector<Text, LongWritable> output, Reporter reporter)
            throws IOException {
        	output.collect(new Text("edges: "), new LongWritable(1));
    }
}
